/**
 * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.babble.blog.service;

import com.babble.blog.entity.BlogCategory;
import com.babble.blog.dto.BlogCategorySaveDTO;
import com.babble.blog.dto.BlogCategoryUpdDTO;
import org.springblade.common.exception.MsgException;
import com.babble.blog.vo.BlogCategoryVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * 博客分类表 服务类
 *
 * @author Blade
 * @since 2021-11-19
 */
public interface IBlogCategoryService extends IService<BlogCategory> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param blogCategory
	 * @return
	 */
	IPage<BlogCategoryVO> selectBlogCategoryPage(IPage<BlogCategoryVO> page, BlogCategoryVO blogCategory);

	/**
	 * 获取所有的博客分类信息
	 * @return
	 */
    List<BlogCategory> selectBlogCategory();
	/**
	 * 点击分类时加载点击量
	 * @param id
	 */
	void clickBlogCategory(String id) throws MsgException;

	/**
	 * 根据ID获取指定的类型
	 * @param id
	 * @return
	 */
	BlogCategory info(String id) throws MsgException;
	/**
	 * 添加分类
	 * @param blogCategoryVO
	 * @return
	 */
	void saveBlogCategory(BlogCategorySaveDTO blogCategoryVO) throws MsgException;

	/**
	 * 删除博客分类
	 * @param id
	 */
	void delBlogCategory(String id);

	/**
	 * 修改博客分类
	 * @param blogCategoryVO
	 */
	void updBlogCategory(BlogCategoryUpdDTO blogCategoryUpdDTO) throws MsgException;
}
